<!DOCTYPE html>  
<html lang="en">  
<head>  
    <meta charset="UTF-8">  
    <meta name="viewport" content="width=device-width, initial-scale=1.0">  
    <title>404 页面未找到</title>  
    <style>  
        body {  
            font-family: Arial, sans-serif;  
            background-color: #f2f2f2;  
            margin: 0;  
            padding: 0;  
            display: flex;  
            justify-content: center;  
            align-items: center;  
            height: 100vh;  
            overflow: hidden;  
        }  
  
        .error-container {  
            min-width: 400px;
            text-align: center;  
            background-color: #fff;  
            padding: 20px;  
            border-radius: 5px;  
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);  
        }  
  
        .error-container h1 {  
            font-size: 80px;  
            line-height: 1;  
            margin: 0 0 20px;  
            color: #666;  
        }  
  
        .error-container h2 {  
            font-size: 24px;  
            margin: 0 0 20px;  
            color: #333;  
        }  
  
        .error-container p {  
            font-size: 16px;  
            color: #666;  
        }  
  
        .error-container a {  
            display: inline-block;  
            background-color: #007BFF;  
            color: #fff;  
            text-decoration: none;  
            padding: 10px 20px;  
            border-radius: 5px;  
            margin-top: 20px;  
            transition: background-color 0.3s ease;  
        }  
  
        .error-container a:hover {  
            background-color: #0056b3;  
        }  
    </style>  
</head>  
<body>  
    <div class="error-container">  
        <h1>404</h1>  
        <h2>错误</h2>  
        <p>{$error}</p>  
        <a href="{$href|default='/'}">{$msg|default='返回首页'}</a>  
    </div>  
</body>  
</html>